package com.lhj.library.domain.convert;

import com.lhj.library.domain.entity.BookBO;
import com.lhj.library.domain.entity.UserBO;
import com.lhj.library.infra.basic.entity.Book;
import com.lhj.library.infra.basic.entity.User;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface UserBoConverter {
    UserBoConverter INSTANCE = Mappers.getMapper(UserBoConverter.class);

    User convertBoToBook(UserBO userBO);

    UserBO convertUserToBo(User user);

    List<UserBO> convertUserToBoList(List<User> users);




}
